import VueRouter from 'vue-router'
import index from './main/index'//注册
import registered from './main/registered'//注册
import goodsDetails from './main/goodsDetails'//商品详情
import agreement from './main/agreement'//注册协议
import privacyPolicy from './main/privacyPolicy'//隐私政策
import welfare from './main/welfare'//福海嘉园邀您领红包
import pay from './main/pay'//线下支付
import spellGroup from './main/spellGroup'//拼团
const routes = [
  { path: '/', component: index, meta: { title: '首页' } },//商品详情 
  { path: '/items/:id', component: goodsDetails, meta: { title: '商品详情' } },//商品详情  
  { path: '/register', component: registered, meta: { title: '注册' } },//注册
  { path: '/agreement', component: agreement, meta: { title: '用户协议' } },//注册协议
  { path: '/welfare', component: welfare, meta: { title: '萬蜂邀您领红包' } },//福海嘉园邀您领红包
  { path: '/pay', component: pay, meta: { title: '线下支付' } },//线下支付
  { path: '/spellGroup', component: spellGroup, meta: { title: '萬蜂' } },//福海嘉园
  { path: '/privacyPolicy', component: privacyPolicy, meta: { title: '隐私政策' } },//隐私政策
]
let router = new VueRouter({ routes })
export default router